package com.hx.springcloud.service;

/**
 * @author chm
 * @title: ProductService
 * @projectName springcloud
 * @description: TODO
 * @date 2020/2/2712:44
 */
import java.util.List;

import com.hx.springcloud.client.ProductClientFeign;
import com.hx.springcloud.pojo.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;



@Service
public class ProductService {
    @Autowired
    ProductClientFeign productClientFeign;
    public List<Product> listProducts(){
        return productClientFeign.listProdcuts();

    }
}